<template>
  <component v-if="currentComponent" :is="currentComponent" />
</template>

<script>
import ComponentsMap from './index'
export default {
  props: {
    active: [String, Number]
  },
  components: {
    ...ComponentsMap
  },
  computed: {
    currentComponent () {
      return this.active ? `example-${this.active}` : ''
    }
  }
}
</script>
